﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ApprovalBusiness.ascx.cs" Inherits="Administrator_AdminControl_ApprovalBusiness" %>

<div class="dasboard">
    <div>
        <h2>
            &nbsp;</h2>
        <h2>
        Thông tin doanh nghiệp đang chờ phê duyệt</h2>
        <p>
            &nbsp;</p>
    </div>  
     <div">
        <asp:Repeater ID="rptInfo" runat="server" onitemcommand="rptInfo_ItemCommand" >
            <HeaderTemplate>
                <table   class="nav-top-item "  cellpadding="0">
                    <tr>
                        <th style="width: 5%;">
                            STT
                        </th>
                        <th style="width: 25%">
                            Tên doanh nghiệp
                        </th>
                        <th style="width: 20%">
                            Website
                        </th>
                        <th style="width: 15%">
                            Người đại diện
                        </th>
                        <th style="width: 15%">
                            Ngành nghề
                        </th>
                        <th style="width:15%">
                            Địa chỉ
                        </th>
                        <th>
                        </th>
                        
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td style="text-align: center;">
                        <%#Container.ItemIndex+1 %>
                        <input type="hidden" value='<%#DataBinder.Eval(Container.DataItem,"EStore_Id") %>' />
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "EStore_Name")%>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem,"EStore_Website")%>
                    </td>
                    <td style="text-align: center;">
                        <%# DataBinder.Eval(Container.DataItem, "EStore_Representative")%>
                    </td>
                    <td style="text-align: center;">
                        <%# DataBinder.Eval(Container.DataItem,"EStore_TotalPoint")%>
                    </td>
                    <td style="text-align: center;">
                        <%# DataBinder.Eval(Container.DataItem, "EStore_Address")%>
                    </td>
                    <td style="text-align: center;">
                        <asp:ImageButton ID="btnApprove" runat="server" ImageUrl="~/images/Admin/Pheduyet.png"
                            CommandName="approval" ToolTip="Phê duyệt" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"EStore_Id") %>' />
                    </td>
                    
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</div>

<asp:Panel ID="pnlDetail" runat="server" Visible="false">
    <div id="dialogDetail" class="dasboard">
        <div class="staticTitle">
            Thông tin chi tiết của doanh nghiệp:
            <asp:Label ID="lblName" runat="server"></asp:Label>
        </div>
        <div class="style-padding1">
            <table id="tbldetail">
                <tr>
                    <td>
                        Tên doanh nghiệp:
                    </td>
                    <td colspan="3">
                        <asp:TextBox ID="txtName" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên người chủ quản
                    </td>
                    <td>
                        <asp:DropDownList ID="drdUser" runat="server" Width="100%" />
                    </td>
                    <td style="padding-left: 30px">
                        Người đại diện
                    </td>
                    <td>
                        <asp:TextBox ID="txtRepresent" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Mã số thuế
                    </td>
                    <td>
                        <asp:TextBox ID="txtTax" runat="server" Width="100%" />
                    </td>
                    <td style="padding-left: 30px">
                        Di động
                    </td>
                    <td>
                        <asp:TextBox ID="txtMobil" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Điện thoại bàn
                    </td>
                    <td>
                        <asp:TextBox ID="txtPhone" runat="server" Width="100%" />
                    </td>
                    <td style="padding-left: 30px">
                        Website
                    </td>
                    <td>
                        <asp:TextBox ID="txtWeb" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Fax
                    </td>
                    <td>
                        <asp:TextBox ID="txtFax" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Địa chỉ
                    </td>
                    <td>
                        <asp:TextBox ID="txtAddress" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Tỉnh thành
                    </td>
                    <td>
                        <asp:DropDownList ID="drdCity" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Ngành nghề
                    </td>
                    <td>
                        <asp:DropDownList ID="drdJob" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Nick Yahoo
                    </td>
                    <td>
                        <asp:TextBox ID="txtYahoo" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Nick Skype
                    </td>
                    <td>
                        <asp:TextBox ID="txtSky" runat="server" Width="100%" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Tóm tắt
                    </td>
                    <td>
                        <asp:TextBox ID="txtDes" runat="server" TextMode="MultiLine" Rows="5" Width="100%" />
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnAgree" runat="server" Text="Đồng ý" 
                onclick="btnAgree_Click"  />
            <asp:Button ID="btnNotAgree" runat="server" Text="Không đồng ý" 
                onclick="btnNotAgree_Click"/>
            <asp:Button ID="btnCancel" runat="server" Text="Thoát" 
                onclick="btnCancel_Click"/>
        </div>
    </div>
    <!--End dasboard-->
    <asp:Label ID="lblEstoreID" runat="server" Visible="false"></asp:Label>
</asp:Panel>